/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package edu.cmu.mism.dgjava.data.models.option.util;

import edu.cmu.mism.dgjava.data.models.option.*;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see edu.cmu.mism.dgjava.data.models.option.OptionModelPackage
 * @generated
 */
public class OptionModelAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static OptionModelPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public OptionModelAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = OptionModelPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected OptionModelSwitch<Adapter> modelSwitch =
		new OptionModelSwitch<Adapter>() {
			@Override
			public Adapter caseDerivitives(Derivitives object) {
				return createDerivitivesAdapter();
			}
			@Override
			public Adapter caseEquity(Equity object) {
				return createEquityAdapter();
			}
			@Override
			public Adapter caseCurrency(Currency object) {
				return createCurrencyAdapter();
			}
			@Override
			public Adapter caseIndex(Index object) {
				return createIndexAdapter();
			}
			@Override
			public Adapter caseFutures(Futures object) {
				return createFuturesAdapter();
			}
			@Override
			public Adapter casePricingModel(PricingModel object) {
				return createPricingModelAdapter();
			}
			@Override
			public Adapter caseEuropeanType(EuropeanType object) {
				return createEuropeanTypeAdapter();
			}
			@Override
			public Adapter caseAmericanType(AmericanType object) {
				return createAmericanTypeAdapter();
			}
			@Override
			public Adapter caseBinomialEuropean(BinomialEuropean object) {
				return createBinomialEuropeanAdapter();
			}
			@Override
			public Adapter caseBinomialAmerican(BinomialAmerican object) {
				return createBinomialAmericanAdapter();
			}
			@Override
			public Adapter caseOptionCalculationResult(OptionCalculationResult object) {
				return createOptionCalculationResultAdapter();
			}
			@Override
			public Adapter caseMonteCarloSimulation(MonteCarloSimulation object) {
				return createMonteCarloSimulationAdapter();
			}
			@Override
			public Adapter caseImplicitFiniteDifference(ImplicitFiniteDifference object) {
				return createImplicitFiniteDifferenceAdapter();
			}
			@Override
			public Adapter caseBlackScholes(BlackScholes object) {
				return createBlackScholesAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.Derivitives <em>Derivitives</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.Derivitives
	 * @generated
	 */
	public Adapter createDerivitivesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.Equity <em>Equity</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.Equity
	 * @generated
	 */
	public Adapter createEquityAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.Currency <em>Currency</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.Currency
	 * @generated
	 */
	public Adapter createCurrencyAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.Index <em>Index</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.Index
	 * @generated
	 */
	public Adapter createIndexAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.Futures <em>Futures</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.Futures
	 * @generated
	 */
	public Adapter createFuturesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.PricingModel <em>Pricing Model</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.PricingModel
	 * @generated
	 */
	public Adapter createPricingModelAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.EuropeanType <em>European Type</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.EuropeanType
	 * @generated
	 */
	public Adapter createEuropeanTypeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.AmericanType <em>American Type</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.AmericanType
	 * @generated
	 */
	public Adapter createAmericanTypeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.BinomialEuropean <em>Binomial European</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.BinomialEuropean
	 * @generated
	 */
	public Adapter createBinomialEuropeanAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.BinomialAmerican <em>Binomial American</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.BinomialAmerican
	 * @generated
	 */
	public Adapter createBinomialAmericanAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.OptionCalculationResult <em>Option Calculation Result</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.OptionCalculationResult
	 * @generated
	 */
	public Adapter createOptionCalculationResultAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.MonteCarloSimulation <em>Monte Carlo Simulation</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.MonteCarloSimulation
	 * @generated
	 */
	public Adapter createMonteCarloSimulationAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.ImplicitFiniteDifference <em>Implicit Finite Difference</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.ImplicitFiniteDifference
	 * @generated
	 */
	public Adapter createImplicitFiniteDifferenceAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link edu.cmu.mism.dgjava.data.models.option.BlackScholes <em>Black Scholes</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see edu.cmu.mism.dgjava.data.models.option.BlackScholes
	 * @generated
	 */
	public Adapter createBlackScholesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //OptionModelAdapterFactory
